package com.peace.hospital.opdept.service.common.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.peace.hospital.entity.common.Address;
import com.peace.hospital.opdept.mapper.common.AddressMapper;
import com.peace.hospital.opdept.service.common.IAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 科室地址表 服务实现类
 * </p>
 *
 * @author 谢晓峰
 * @since 2019-11-11
 */
@Service
public class AddressServiceImpl extends ServiceImpl<AddressMapper, Address> implements IAddressService {
@Autowired
private AddressMapper addressMapper;

    @Override
    public Address selectAddressBydepId(int depid) {
        return addressMapper.selectAddressById(depid);
    }
}
